﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using KeMei.Common;

public partial class ApplicationCase_ApplicationCaseDetail : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string strId = Request["Id"];
            if (strId != null && !string.IsNullOrEmpty(strId.Trim()))
            {
                try
                {
                    int id = Convert.ToInt32(strId.Trim());
                    KeMei.BLL.ProductAndCase bll = new KeMei.BLL.ProductAndCase();
                    KeMei.Model.ProductAndCase info = bll.GetModel(id);
                    if (info != null)
                    {
                        lbTitle.Text = "> " + info.TName;
                        lbTName.Text = info.TName;
                        //lbRecodeTime.Text = info.RecordDate != null ? info.RecordDate.Value.ToShortDateString() : "";
                        ProductContent.InnerHtml = info.TContent;
                    }
                }
                catch (FormatException ex)
                {
                    MessageBox.Show(this, ex.Message);
                }
            }
        }
    }
}